package com.arm.def;

/**
 * Created by Baggio on 2017/3/13.
 */
public interface Constant {

    /**
     * 分页信息
     */
    public static final int PAGENUM = 1;
    public static final int PAGESIZENum = 10;
    public static final String PAGE = "page";
    public static final String PAGESIZE = "pageSize";



    /**
     * 用户登录的sessionEey
     */
    public final static String SESSION_KEY_USER_LOGIN = "USER";
    public final static String SESSION_KEY_ADMIN_USER_LOGIN = "ADMINUSER";
    public final static String SESSION_KEY_WECHAT_APPLET_USER_LOGIN = "WECHAT_APPLET_USER";
    public final static String SESSION_OPEN_ID = "openId";
    public final static String SESSION_WECHAT_USER_INFO = "userWechatInfo";
    public final static String THIS_URL = "this_url";
    /**
     * 随机短信验证码
     */
    public final static String SESSION_KEY_SMS_RANDOM_CODE = "SMS_RANDOM_CODE";
    public final static String SESSION_KEY_RANDOM_VALIDATE_CODE = "RANDOM_VALIDATE_CODE";



    /**
     * session中存放用户信息的key值
     */
    public static final String SESSION_USER_INFO = "userInfo";
    public static final String SESSION_USER_PERMISSION = "userPermission";

    //redis中存放TOKEN与shiro sessionid 映射关系Key 前缀
    public static final String REDIS_KEY_PREFIX_SHIRO_TOKEN = "showcai:shiro:sessionid:token:";

    //TOKEN 与shiro sessionid 映射关系过期时间
    public static final Integer REDIS_SHIRO_TOKEN_EXPIRES = 4 * 8600;

    //http请求头TOKEN key
    public static final String HTTP_REQUEST_HEADER_TOKEN_KEY = "Access-Token";
}
